using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace BusinessObjects
{
	public class HopDong : BaseObject
	{
		
		private string _soHopDong = String.Empty;
		private DateTime _ngayKy;
		private ChucVu _chucVuNguoiKy;
		private NhanVien _nguoiKy;
		private HoSo _nguoiLaoDong;
		private BoPhan _diaDiemLamViec;
		private string _chucDanhChuyenMon = String.Empty;
		private string _loaiHopDong;
		
		
		#region Public Properties
		
		public string SoHopDong
		{
            get
            {
                return _soHopDong;
            }
            set
            {
                if (_soHopDong == value)
                    return;
                _soHopDong = value;
                OnPropertyChanged("SoHopDong");
            }
		}

		public DateTime NgayKy
		{
            get
            {
                return _ngayKy;
            }
            set
            {
                if (_ngayKy == value)
                    return;
                _ngayKy = value;

            }
		}

		public ChucVu ChucVuNguoiKy
		{
            get
            {
                return _chucVuNguoiKy;
            }
            set
            {
                if (_chucVuNguoiKy == value)
                    return;
                _chucVuNguoiKy = value;
                OnPropertyChanged("ChucVuNguoiKy");
            }
		}

		public NhanVien NguoiKy
		{
            get
            {
                return _nguoiKy;
            }
            set
            {
                if (_nguoiKy == value)
                    return;
                _nguoiKy = value;
                OnPropertyChanged("NguoiKy");
            }
		}

		public HoSo NguoiLaoDong
		{
            get
            {
                return _nguoiLaoDong;
            }
            set
            {
                if (_nguoiLaoDong == value)
                    return;
                _nguoiLaoDong = value;
                OnPropertyChanged("NguoiLaoDong");
            }
		}

		public BoPhan DiaDiemLamViec
		{
            get
            {
                return _diaDiemLamViec;
            }
            set
            {
                if (_diaDiemLamViec == value)
                    return;
                _diaDiemLamViec = value;
                OnPropertyChanged("DiaDiemLamViec");
            }
		}

		public string ChucDanhChuyenMon
		{
            get
            {
                return _chucDanhChuyenMon;
            }
            set
            {
                if (_chucDanhChuyenMon == value)
                    return;
                _chucDanhChuyenMon = value;
                OnPropertyChanged("ChucDanhChuyenMon");
            }
		}
        
		public string LoaiHopDong
		{
            get
            {
                return _loaiHopDong;
            }
            set
            {
                if (_loaiHopDong == value)
                    return;
                _loaiHopDong = value;
                OnPropertyChanged("LoaiHopDong");
            }
		}

		#endregion

        public override string ToString()
        {
            return SoHopDong;
        }
	}
}

